Integrand size = 28, antiderivative size = 175 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{9/2}} \, dx=\frac {27 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{256 \sqrt {2} c^{9/2} f}+\frac {9 c \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{11/2}}-\frac {9 \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{7/2}}+\frac {9 \cos (e+f x)}{64 c^2 f (c-c \sin (e+f x))^{5/2}}+\frac {27 \cos (e+f x)}{256 c^3 f (c-c \sin (e+f x))^{3/2}} \]
[Out]
Time = 0.21 (sec) , antiderivative size = 190, normalized size of antiderivative = 1.09, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {2815, 2759, 2729, 2728, 212} \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{9/2}} \, dx=\frac {3 a^2 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{256 \sqrt {2} c^{9/2} f}+\frac {3 a^2 \cos (e+f x)}{256 c^3 f (c-c \sin (e+f x))^{3/2}}+\frac {a^2 \cos (e+f x)}{64 c^2 f (c-c \sin (e+f x))^{5/2}}+\frac {a^2 c \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{11/2}}-\frac {a^2 \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{7/2}} \]
[In]
[Out]
Rule 212
Rule 2728
Rule 2729
Rule 2759
Rule 2815
Rubi steps \begin{align*} \text {integral}& = \left (a^2 c^2\right ) \int \frac {\cos ^4(e+f x)}{(c-c \sin (e+f x))^{13/2}} \, dx \\ & = \frac {a^2 c \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{11/2}}-\frac {1}{8} \left (3 a^2\right ) \int \frac {\cos ^2(e+f x)}{(c-c \sin (e+f x))^{9/2}} \, dx \\ & = \frac {a^2 c \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{11/2}}-\frac {a^2 \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{7/2}}+\frac {a^2 \int \frac {1}{(c-c \sin (e+f x))^{5/2}} \, dx}{16 c^2} \\ & = \frac {a^2 c \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{11/2}}-\frac {a^2 \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{7/2}}+\frac {a^2 \cos (e+f x)}{64 c^2 f (c-c \sin (e+f x))^{5/2}}+\frac {\left (3 a^2\right ) \int \frac {1}{(c-c \sin (e+f x))^{3/2}} \, dx}{128 c^3} \\ & = \frac {a^2 c \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{11/2}}-\frac {a^2 \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{7/2}}+\frac {a^2 \cos (e+f x)}{64 c^2 f (c-c \sin (e+f x))^{5/2}}+\frac {3 a^2 \cos (e+f x)}{256 c^3 f (c-c \sin (e+f x))^{3/2}}+\frac {\left (3 a^2\right ) \int \frac {1}{\sqrt {c-c \sin (e+f x)}} \, dx}{512 c^4} \\ & = \frac {a^2 c \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{11/2}}-\frac {a^2 \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{7/2}}+\frac {a^2 \cos (e+f x)}{64 c^2 f (c-c \sin (e+f x))^{5/2}}+\frac {3 a^2 \cos (e+f x)}{256 c^3 f (c-c \sin (e+f x))^{3/2}}-\frac {\left (3 a^2\right ) \text {Subst}\left (\int \frac {1}{2 c-x^2} \, dx,x,-\frac {c \cos (e+f x)}{\sqrt {c-c \sin (e+f x)}}\right )}{256 c^4 f} \\ & = \frac {3 a^2 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{256 \sqrt {2} c^{9/2} f}+\frac {a^2 c \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{11/2}}-\frac {a^2 \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{7/2}}+\frac {a^2 \cos (e+f x)}{64 c^2 f (c-c \sin (e+f x))^{5/2}}+\frac {3 a^2 \cos (e+f x)}{256 c^3 f (c-c \sin (e+f x))^{3/2}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 1.40 (sec) , antiderivative size = 335, normalized size of antiderivative = 1.91 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{9/2}} \, dx=\frac {9 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (128 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )-96 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^3+4 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^5+3 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^7-(3+3 i) \sqrt [4]{-1} \arctan \left (\left (\frac {1}{2}+\frac {i}{2}\right ) \sqrt [4]{-1} \left (1+\tan \left (\frac {1}{4} (e+f x)\right )\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^8+256 \sin \left (\frac {1}{2} (e+f x)\right )-192 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^2 \sin \left (\frac {1}{2} (e+f x)\right )+8 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^4 \sin \left (\frac {1}{2} (e+f x)\right )+6 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^6 \sin \left (\frac {1}{2} (e+f x)\right )\right )}{256 f (c-c \sin (e+f x))^{9/2}} \]
[In]
[Out]
Time = 3.03 (sec) , antiderivative size = 299, normalized size of antiderivative = 1.71
method | result | size |
default | \(\frac {a^{2} \left (6 \left (c \left (\sin \left (f x +e \right )+1\right )\right )^{\frac {7}{2}} c^{\frac {5}{2}}-3 \,\operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \sqrt {2}\, c^{6} \left (\sin ^{4}\left (f x +e \right )\right )-44 \left (c \left (\sin \left (f x +e \right )+1\right )\right )^{\frac {5}{2}} c^{\frac {7}{2}}+12 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (\sin ^{3}\left (f x +e \right )\right ) c^{6}-88 \left (c \left (\sin \left (f x +e \right )+1\right )\right )^{\frac {3}{2}} c^{\frac {9}{2}}-18 \,\operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (\sin ^{2}\left (f x +e \right )\right ) \sqrt {2}\, c^{6}+48 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, c^{\frac {11}{2}}+12 \,\operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \sin \left (f x +e \right ) \sqrt {2}\, c^{6}-3 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{6}\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}}{512 c^{\frac {21}{2}} \left (\sin \left (f x +e \right )-1\right )^{3} \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(299\) |
parts | \(\text {Expression too large to display}\) | \(918\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 523 vs. \(2 (163) = 326\).
Time = 0.27 (sec) , antiderivative size = 523, normalized size of antiderivative = 2.99 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{9/2}} \, dx=\frac {3 \, \sqrt {2} {\left (a^{2} \cos \left (f x + e\right )^{5} + 5 \, a^{2} \cos \left (f x + e\right )^{4} - 8 \, a^{2} \cos \left (f x + e\right )^{3} - 20 \, a^{2} \cos \left (f x + e\right )^{2} + 8 \, a^{2} \cos \left (f x + e\right ) + 16 \, a^{2} - {\left (a^{2} \cos \left (f x + e\right )^{4} - 4 \, a^{2} \cos \left (f x + e\right )^{3} - 12 \, a^{2} \cos \left (f x + e\right )^{2} + 8 \, a^{2} \cos \left (f x + e\right ) + 16 \, a^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {c} \log \left (-\frac {c \cos \left (f x + e\right )^{2} + 2 \, \sqrt {2} \sqrt {-c \sin \left (f x + e\right ) + c} \sqrt {c} {\left (\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right )} + 3 \, c \cos \left (f x + e\right ) + {\left (c \cos \left (f x + e\right ) - 2 \, c\right )} \sin \left (f x + e\right ) + 2 \, c}{\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right ) - 4 \, {\left (3 \, a^{2} \cos \left (f x + e\right )^{4} + 13 \, a^{2} \cos \left (f x + e\right )^{3} + 86 \, a^{2} \cos \left (f x + e\right )^{2} - 52 \, a^{2} \cos \left (f x + e\right ) - 128 \, a^{2} - {\left (3 \, a^{2} \cos \left (f x + e\right )^{3} - 10 \, a^{2} \cos \left (f x + e\right )^{2} + 76 \, a^{2} \cos \left (f x + e\right ) + 128 \, a^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{1024 \, {\left (c^{5} f \cos \left (f x + e\right )^{5} + 5 \, c^{5} f \cos \left (f x + e\right )^{4} - 8 \, c^{5} f \cos \left (f x + e\right )^{3} - 20 \, c^{5} f \cos \left (f x + e\right )^{2} + 8 \, c^{5} f \cos \left (f x + e\right ) + 16 \, c^{5} f - {\left (c^{5} f \cos \left (f x + e\right )^{4} - 4 \, c^{5} f \cos \left (f x + e\right )^{3} - 12 \, c^{5} f \cos \left (f x + e\right )^{2} + 8 \, c^{5} f \cos \left (f x + e\right ) + 16 \, c^{5} f\right )} \sin \left (f x + e\right )\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{9/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{9/2}} \, dx=\int { \frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{2}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {9}{2}}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 327 vs. \(2 (163) = 326\).
Time = 0.46 (sec) , antiderivative size = 327, normalized size of antiderivative = 1.87 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{9/2}} \, dx=\frac {\frac {12 \, \sqrt {2} a^{2} \log \left (\frac {{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}\right )}{c^{\frac {9}{2}} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {\sqrt {2} {\left (a^{2} \sqrt {c} - \frac {8 \, a^{2} \sqrt {c} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}} + \frac {18 \, a^{2} \sqrt {c} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{4}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{4}}\right )} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{4}}{c^{5} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {\frac {8 \, \sqrt {2} a^{2} c^{\frac {11}{2}} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}} - \frac {\sqrt {2} a^{2} c^{\frac {11}{2}} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{4} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{4}}}{c^{10}}}{8192 \, f} \]
[In]
[Out]
Timed out. \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{9/2}} \, dx=\int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^2}{{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{9/2}} \,d x \]
[In]
[Out]